<?php

namespace App\Http\Middleware;

use Illuminate\Http\Request;
use Inertia\Middleware;

class HandleInertiaRequests extends Middleware
{
    protected $rootView = 'app';

    public function version(Request $request): ?string
    {
        return parent::version($request);
    }

    public function share(Request $request): array
    {
        return [
            ...parent::share($request),
            'config' => [
                'name' => '预约收银系统',
                'logo' => 'https://www.yuxibs.com/static/images/logo.png',
            ],
        ];
    }
}
